import 'package:flutter/material.dart';

// --- 积分中心模型 ---

class UserInfo {
  final String name;
  final int points;

  UserInfo({required this.name, required this.points});
}

// 积分任务模型 (用于 Tab 1)
class PointTask {
  final String title;
  final String subtitle;
  final String reward;
  final String buttonText;
  final String icon;
  final bool isCompleted; // true: 已领取, false: 去完成/领取

  PointTask({
    required this.title,
    required this.subtitle,
    required this.reward,
    required this.buttonText,
    required this.icon,
    required this.isCompleted,
  });
}

// 积分商城商品模型 (用于 Tab 2)
class PointProduct {
  final String title;
  final String subtitle;
  final String pointsCost;
  final String buttonText;
  final bool isRedeemed; // true: 已领取, false: 领取

  PointProduct({
    required this.title,
    required this.subtitle,
    required this.pointsCost,
    required this.buttonText,
    required this.isRedeemed,
  });
}